39 Ревизии

Автор SHA1 Съобщение Дата
  Arin Turpin be01e8ad70 working2 преди 6 години
  Arin Turpin da32ea534a working преди 6 години
  Eric Foster 5c3391f9a2 transaction list on front end преди 6 години
  Eric Foster 29f49e3225 changing branches преди 6 години
  Eric Foster 0acd0b0399 fix merge results преди 6 години
  Eric Foster 7730d48da0 asdf преди 6 години
  Eric Foster d5969f6320 added transaction list to front end преди 6 години
  Shivam Patel 3356113acd workspace преди 6 години
  Shivam Patel c21b74173b ok преди 6 години
  Shivam Patel 108935a76b a преди 6 години
  Shivam Patel aed4fa9306 a преди 6 години
  Shivam Patel 4ffb64dcac transaction loader преди 6 години
  Shivam Patel d8d32af705 done tables преди 6 години
  Shivam Patel 7fd4e7062d fixed преди 6 години
  Shivam Patel e775066826 javasc преди 6 години
  Shivam Patel 4d2c4232cc shit js преди 6 години
  Eric Foster a48d2c9e8d merge with dev преди 6 години
  Eric Foster 6ba6ba97e2 deleted h2 files преди 6 години
  Eric Foster da722bda1f workspace.xml преди 6 години
  Shivam Patel 8a3bb5fcd3 fix преди 6 години
  Shivam Patel 50bf31edfc work преди 6 години
  Shivam Patel 7bef4817d8 ok преди 6 години
  Shivam Patel 87844b2bc9 conflicts fixed преди 6 години
  Shivam Patel 4badc20193 errors преди 6 години
  Eric Foster 219e7c9e3b asdf преди 6 години
  Eric Foster 0bd0636280 Asdf преди 6 години
  Eric Foster 2e8f3e32ea deleted workspace.fml преди 6 години
  Shivam Patel 4df2480c97 dwgaifk преди 6 години
  Shivam Patel c832639312 wdasbhwelkfab преди 6 години
  Shivam Patel 1731c60f80 fffff преди 6 години
  Shivam Patel cce61b4a49 broken stuff преди 6 години
  Shivam Patel d84357e21d a преди 6 години
  Shivam Patel d53ae9d272 a преди 6 години
  Shivam Patel e99b84a35e test преди 6 години
  Shivam Patel b9e86a6466 errors преди 6 години
  Shivam Patel db9f1a2a10 test mine преди 6 години
  Shivam Patel 180abf7216 stuff преди 6 години
  Shivam Patel 12e5059e18 fixed преди 6 години
  Shivam Patel 59ed920649 uhoh преди 6 години
променени са 52 файла, в които са добавени 14073 реда и са изтрити 13576 реда
  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. 92
    86
      ZipCoinRedJavaServer/.idea/workspace.xml
  25. 0
    2
      ZipCoinRedJavaServer/pom.xml
  26. 24
    0
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/ZipCoinApp.java
  27. 1
    1
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/BlockLoader.java
  28. 40
    1
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/TransactionLoader.java
  29. 31
    13
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java
  30. 1
    0
      ZipCoinRedJavaServer/src/main/resources/application.properties
  31. 2
    1
      ZipCoinRedJavaServer/target/classes/application.properties
  32. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/ZipCoinApp.class
  33. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/config/BlockLoader.class
  34. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/config/TransactionLoader.class
  35. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/config/WalletLoader.class
  36. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/BlockController.class
  37. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/HomeController.class
  38. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/TransactionController.class
  39. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/WalletController.class
  40. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Block.class
  41. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Chain.class
  42. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Transaction.class
  43. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Wallet.class
  44. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/BlockRepository.class
  45. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/TransactionRepository.class
  46. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/WalletRepository.class
  47. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/Miner.class
  48. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/StringUtil.class
  49. 16
    0
      ZipCoinRedJavaServer/target/classes/db/migration/V2__create_block.sql
  50. 51
    0
      src/main/java/redCoin/Main.java
  51. 34
    0
      src/test/java/redCoin/testMain.java
  52. BIN
      target/test-classes/redCoin/testMain.class

+ 97
- 1
.idea/workspace.xml Целия файл

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

+ 1
- 1
ZipCoinRedIonicClient/.sourcemaps/0.js.map Целия файл

@@ -1 +1 @@
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
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 3
- 4
ZipCoinRedIonicClient/ionic.config.json Целия файл

@@ -1,6 +1,5 @@
1 1
 {
2 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 Целия файл

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

+ 2
- 0
ZipCoinRedIonicClient/src/app/app.module.ts Целия файл

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

+ 8
- 0
ZipCoinRedIonicClient/src/model/transaction.ts Целия файл

@@ -0,0 +1,8 @@
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 Целия файл

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

+ 17
- 0
ZipCoinRedIonicClient/src/pages/transaction/transaction.html Целия файл

@@ -15,4 +15,21 @@
15 15
 
16 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 35
 </ion-content>

+ 11
- 1
ZipCoinRedIonicClient/src/pages/transaction/transaction.ts Целия файл

@@ -1,5 +1,6 @@
1 1
 import { Component } from '@angular/core';
2 2
 import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+import { TransactionService } from '../../providers/transaction-service';
3 4
 
4 5
 /**
5 6
  * Generated class for the TransactionPage page.
@@ -15,11 +16,20 @@ import { IonicPage, NavController, NavParams } from 'ionic-angular';
15 16
 })
16 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 25
   ionViewDidLoad() {
22 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 Целия файл

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

+ 11
- 1
ZipCoinRedIonicClient/src/pages/wallet/wallet.ts Целия файл

@@ -1,5 +1,8 @@
1 1
 import { Component } from '@angular/core';
2 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 8
  * Generated class for the WalletPage page.
@@ -15,11 +18,18 @@ import { IonicPage, NavController, NavParams } from 'ionic-angular';
15 18
 })
16 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 27
   ionViewDidLoad() {
22 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 Целия файл

@@ -0,0 +1,22 @@
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 Целия файл

@@ -1,25 +0,0 @@
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 Целия файл

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

+ 1
- 1
ZipCoinRedIonicClient/www/build/0.js.map Целия файл

@@ -1 +1 @@
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 Целия файл

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

+ 1
- 1
ZipCoinRedIonicClient/www/build/2.js Целия файл

@@ -8,7 +8,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8 8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabsPageModule", function() { return TabsPageModule; });
9 9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10 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 12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13 13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14 14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);

+ 2
- 2
ZipCoinRedIonicClient/www/build/3.js Целия файл

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

+ 208
- 54
ZipCoinRedIonicClient/www/build/main.js Целия файл

@@ -1,15 +1,113 @@
1 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 95
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5 96
 
6 97
 "use strict";
7 98
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
8 99
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
100
+<<<<<<< HEAD
9 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 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 111
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
14 112
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15 113
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -33,7 +131,7 @@ var TabsPage = /** @class */ (function () {
33 131
     }
34 132
     TabsPage = __decorate([
35 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 136
         __metadata("design:paramtypes", [])
39 137
     ], TabsPage);
@@ -44,13 +142,18 @@ var TabsPage = /** @class */ (function () {
44 142
 
45 143
 /***/ }),
46 144
 
47
-/***/ 101:
145
+<<<<<<< HEAD
146
+/***/ 102:
147
+=======
148
+/***/ 103:
149
+>>>>>>> posttransaction
48 150
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
49 151
 
50 152
 "use strict";
51 153
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
52 154
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
53 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 157
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
55 158
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
56 159
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -62,6 +165,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
62 165
 };
63 166
 
64 167
 
168
+
65 169
 /**
66 170
  * Generated class for the WalletPage page.
67 171
  *
@@ -69,18 +173,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
69 173
  * Ionic pages and navigation.
70 174
  */
71 175
 var WalletPage = /** @class */ (function () {
72
-    function WalletPage(navCtrl, navParams) {
176
+    function WalletPage(navCtrl, navParams, transactionService) {
73 177
         this.navCtrl = navCtrl;
74 178
         this.navParams = navParams;
179
+        this.transactionService = transactionService;
75 180
     }
76 181
     WalletPage.prototype.ionViewDidLoad = function () {
77 182
         console.log('ionViewDidLoad WalletPage');
78 183
     };
184
+    WalletPage.prototype.createTransaction = function () {
185
+        this.transactionService.createTransaction(this.transaction);
186
+    };
79 187
     WalletPage = __decorate([
80 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 192
     ], WalletPage);
85 193
     return WalletPage;
86 194
 }());
@@ -89,13 +197,17 @@ var WalletPage = /** @class */ (function () {
89 197
 
90 198
 /***/ }),
91 199
 
92
-/***/ 102:
200
+<<<<<<< HEAD
201
+/***/ 114:
202
+=======
203
+/***/ 104:
93 204
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
94 205
 
95 206
 "use strict";
96 207
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
97 208
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
98 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 211
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
100 212
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
101 213
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -107,6 +219,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
107 219
 };
108 220
 
109 221
 
222
+
110 223
 /**
111 224
  * Generated class for the TransactionPage page.
112 225
  *
@@ -114,18 +227,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
114 227
  * Ionic pages and navigation.
115 228
  */
116 229
 var TransactionPage = /** @class */ (function () {
117
-    function TransactionPage(navCtrl, navParams) {
230
+    function TransactionPage(navCtrl, navParams, transactionService) {
118 231
         this.navCtrl = navCtrl;
119 232
         this.navParams = navParams;
233
+        this.transactionService = transactionService;
120 234
     }
121 235
     TransactionPage.prototype.ionViewDidLoad = function () {
122 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 244
     TransactionPage = __decorate([
125 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 250
     ], TransactionPage);
130 251
     return TransactionPage;
131 252
 }());
@@ -134,7 +255,8 @@ var TransactionPage = /** @class */ (function () {
134 255
 
135 256
 /***/ }),
136 257
 
137
-/***/ 114:
258
+/***/ 116:
259
+>>>>>>> posttransaction
138 260
 /***/ (function(module, exports) {
139 261
 
140 262
 function webpackEmptyAsyncContext(req) {
@@ -147,28 +269,32 @@ function webpackEmptyAsyncContext(req) {
147 269
 webpackEmptyAsyncContext.keys = function() { return []; };
148 270
 webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
149 271
 module.exports = webpackEmptyAsyncContext;
150
-webpackEmptyAsyncContext.id = 114;
272
+webpackEmptyAsyncContext.id = 116;
151 273
 
152 274
 /***/ }),
153 275
 
154
-/***/ 156:
276
+/***/ 158:
155 277
 /***/ (function(module, exports, __webpack_require__) {
156 278
 
157 279
 var map = {
158 280
 	"../pages/tab4/tab4.module": [
159
-		279,
281
+		280,
160 282
 		3
161 283
 	],
162 284
 	"../pages/tabs/tabs.module": [
163
-		280,
285
+		281,
164 286
 		2
165 287
 	],
166 288
 	"../pages/transaction/transaction.module": [
167
-		281,
289
+<<<<<<< HEAD
290
+		280,
291
+=======
292
+		282,
293
+>>>>>>> posttransaction
168 294
 		1
169 295
 	],
170 296
 	"../pages/wallet/wallet.module": [
171
-		282,
297
+		283,
172 298
 		0
173 299
 	]
174 300
 };
@@ -183,19 +309,19 @@ function webpackAsyncContext(req) {
183 309
 webpackAsyncContext.keys = function webpackAsyncContextKeys() {
184 310
 	return Object.keys(map);
185 311
 };
186
-webpackAsyncContext.id = 156;
312
+webpackAsyncContext.id = 158;
187 313
 module.exports = webpackAsyncContext;
188 314
 
189 315
 /***/ }),
190 316
 
191
-/***/ 157:
317
+/***/ 159:
192 318
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
193 319
 
194 320
 "use strict";
195 321
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
196 322
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
197 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 325
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
200 326
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
201 327
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -235,7 +361,7 @@ var HomePage = /** @class */ (function () {
235 361
     };
236 362
     HomePage = __decorate([
237 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 366
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
241 367
     ], HomePage);
@@ -252,12 +378,12 @@ var HomePage = /** @class */ (function () {
252 378
 
253 379
 /***/ }),
254 380
 
255
-/***/ 158:
381
+/***/ 160:
256 382
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
257 383
 
258 384
 "use strict";
259 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 387
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
262 388
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
263 389
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -296,13 +422,13 @@ var BlockService = /** @class */ (function () {
296 422
 
297 423
 /***/ }),
298 424
 
299
-/***/ 203:
425
+/***/ 204:
300 426
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
301 427
 
302 428
 "use strict";
303 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 434
 Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
@@ -310,7 +436,7 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
310 436
 
311 437
 /***/ }),
312 438
 
313
-/***/ 224:
439
+/***/ 225:
314 440
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
315 441
 
316 442
 "use strict";
@@ -318,16 +444,30 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
318 444
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
319 445
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
320 446
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(28);
447
+<<<<<<< HEAD
321 448
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
322 449
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(202);
323 450
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(278);
324 451
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(159);
325 452
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(158);
326 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 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 471
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
332 472
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
333 473
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -347,6 +487,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
347 487
 
348 488
 
349 489
 
490
+
350 491
 var AppModule = /** @class */ (function () {
351 492
     function AppModule() {
352 493
     }
@@ -366,8 +507,8 @@ var AppModule = /** @class */ (function () {
366 507
                 __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */], {}, {
367 508
                     links: [
368 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 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 512
                         { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
372 513
                     ]
373 514
                 })
@@ -385,6 +526,7 @@ var AppModule = /** @class */ (function () {
385 526
                 __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
386 527
                 __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
387 528
                 __WEBPACK_IMPORTED_MODULE_7__providers_block_service__["a" /* BlockService */],
529
+                __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__["a" /* TransactionService */],
388 530
                 { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
389 531
             ]
390 532
         })
@@ -396,16 +538,22 @@ var AppModule = /** @class */ (function () {
396 538
 
397 539
 /***/ }),
398 540
 
399
-/***/ 278:
541
+/***/ 279:
400 542
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
401 543
 
402 544
 "use strict";
403 545
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
404 546
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
405 547
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
548
+<<<<<<< HEAD
406 549
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(202);
407 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 557
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
410 558
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
411 559
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -431,7 +579,7 @@ var MyApp = /** @class */ (function () {
431 579
         });
432 580
     }
433 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 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 585
     ], MyApp);
@@ -442,13 +590,13 @@ var MyApp = /** @class */ (function () {
442 590
 
443 591
 /***/ }),
444 592
 
445
-/***/ 99:
593
+/***/ 50:
446 594
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
447 595
 
448 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 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 600
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
453 601
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
454 602
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -460,32 +608,38 @@ var __metadata = (this && this.__metadata) || function (k, v) {
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 621
     Tab4Page = __decorate([
478 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 625
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
482 626
     ], Tab4Page);
483 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 645
 //# sourceMappingURL=main.js.map

+ 5
- 1
ZipCoinRedIonicClient/www/build/main.js.map
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 13372
- 13371
ZipCoinRedIonicClient/www/build/vendor.js
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 5
- 1
ZipCoinRedIonicClient/www/build/vendor.js.map
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 92
- 86
ZipCoinRedJavaServer/.idea/workspace.xml Целия файл

@@ -11,7 +11,7 @@
11 11
     <option name="LAST_RESOLUTION" value="IGNORE" />
12 12
   </component>
13 13
   <component name="FileEditorManager">
14
-    <leaf>
14
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
15 15
       <file leaf-file-name="Miner.java" pinned="false" current-in-tab="false">
16 16
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java">
17 17
           <provider selected="true" editor-type-id="text-editor">
@@ -24,8 +24,8 @@
24 24
       <file leaf-file-name="BlockLoader.java" pinned="false" current-in-tab="true">
25 25
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java">
26 26
           <provider selected="true" editor-type-id="text-editor">
27
-            <state relative-caret-position="382">
28
-              <caret line="33" column="33" selection-start-line="33" selection-start-column="33" selection-end-line="33" selection-end-column="33" />
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 29
               <folding>
30 30
                 <element signature="imports" expanded="true" />
31 31
               </folding>
@@ -33,6 +33,15 @@
33 33
           </provider>
34 34
         </entry>
35 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>
36 45
       <file leaf-file-name="Block.java" pinned="false" current-in-tab="false">
37 46
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
38 47
           <provider selected="true" editor-type-id="text-editor">
@@ -52,18 +61,21 @@
52 61
       </list>
53 62
     </option>
54 63
   </component>
55
-  <component name="ProjectFrameBounds">
56
-    <option name="y" value="22" />
57
-    <option name="width" value="1280" />
58
-    <option name="height" value="691" />
64
+  <component name="MavenImportPreferences">
65
+    <option name="importingSettings">
66
+      <MavenImportingSettings>
67
+        <option name="importAutomatically" value="true" />
68
+      </MavenImportingSettings>
69
+    </option>
59 70
   </component>
60 71
   <component name="ProjectView">
61 72
     <navigator proportions="" version="1">
62 73
       <foldersAlwaysOnTop value="true" />
63 74
     </navigator>
64 75
     <panes>
65
-      <pane id="AndroidView" />
66 76
       <pane id="PackagesPane" />
77
+      <pane id="AndroidView" />
78
+      <pane id="Scope" />
67 79
       <pane id="ProjectPane">
68 80
         <subPane>
69 81
           <expand>
@@ -74,6 +86,11 @@
74 86
             <path>
75 87
               <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
76 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" />
77 94
               <item name="src" type="462c0819:PsiDirectoryNode" />
78 95
             </path>
79 96
             <path>
@@ -115,19 +132,21 @@
115 132
               <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
116 133
               <item name="model" type="462c0819:PsiDirectoryNode" />
117 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>
118 144
           </expand>
119 145
           <select />
120 146
         </subPane>
121 147
       </pane>
122
-      <pane id="Scope" />
123 148
     </panes>
124 149
   </component>
125
-  <component name="PropertiesComponent">
126
-    <property name="project.structure.last.edited" value="Global Libraries" />
127
-    <property name="project.structure.proportion" value="0.15" />
128
-    <property name="project.structure.side.proportion" value="0.33547795" />
129
-    <property name="settings.editor.selected.configurable" value="editor.preferences.import" />
130
-  </component>
131 150
   <component name="RunDashboard">
132 151
     <option name="ruleStates">
133 152
       <list>
@@ -197,34 +216,33 @@
197 216
     <servers />
198 217
   </component>
199 218
   <component name="ToolWindowManager">
200
-    <frame x="0" y="22" width="1280" height="691" extended-state="0" />
201
-    <editor active="true" />
219
+    <frame x="0" y="22" width="1020" height="691" extended-state="0" />
202 220
     <layout>
203
-      <window_info anchor="right" id="Palette" />
221
+      <window_info anchor="right" id="Palette" order="3" />
204 222
       <window_info anchor="bottom" id="TODO" order="6" />
205
-      <window_info anchor="right" id="Palette&#9;" />
206
-      <window_info id="Image Layers" />
207
-      <window_info anchor="right" id="Capture Analysis" />
208
-      <window_info anchor="bottom" id="Event Log" side_tool="true" />
209
-      <window_info anchor="right" id="Maven Projects" />
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" />
210 228
       <window_info anchor="bottom" id="Run" order="2" />
211
-      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
212
-      <window_info anchor="bottom" id="Terminal" weight="0.25084174" />
213
-      <window_info id="Capture Tool" />
214
-      <window_info id="Designer" />
215
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24959612" />
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" />
216 234
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
217 235
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
218
-      <window_info id="UI Designer" />
219
-      <window_info anchor="right" id="Theme Preview" />
236
+      <window_info id="UI Designer" order="2" />
237
+      <window_info anchor="right" id="Theme Preview" order="3" />
220 238
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
221
-      <window_info id="Favorites" side_tool="true" />
222
-      <window_info anchor="bottom" id="Find" order="1" />
223
-      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
224
-      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
239
+      <window_info id="Favorites" order="2" side_tool="true" />
225 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" />
226 243
       <window_info anchor="bottom" id="Message" order="0" />
227 244
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
245
+      <window_info anchor="bottom" id="Find" order="1" />
228 246
     </layout>
229 247
   </component>
230 248
   <component name="VcsContentAnnotationSettings">
@@ -238,6 +256,37 @@
238 256
         </state>
239 257
       </provider>
240 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>
241 290
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
242 291
       <provider selected="true" editor-type-id="text-editor">
243 292
         <state relative-caret-position="75">
@@ -245,10 +294,17 @@
245 294
         </state>
246 295
       </provider>
247 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>
248 304
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java">
249 305
       <provider selected="true" editor-type-id="text-editor">
250
-        <state relative-caret-position="382">
251
-          <caret line="33" column="33" selection-start-line="33" selection-start-column="33" selection-end-line="33" selection-end-column="33" />
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" />
252 308
           <folding>
253 309
             <element signature="imports" expanded="true" />
254 310
           </folding>
@@ -256,54 +312,4 @@
256 312
       </provider>
257 313
     </entry>
258 314
   </component>
259
-  <component name="masterDetails">
260
-    <states>
261
-      <state key="GlobalLibrariesConfigurable.UI">
262
-        <settings>
263
-          <splitter-proportions>
264
-            <option name="proportions">
265
-              <list>
266
-                <option value="0.33547795" />
267
-              </list>
268
-            </option>
269
-          </splitter-proportions>
270
-        </settings>
271
-      </state>
272
-      <state key="JdkListConfigurable.UI">
273
-        <settings>
274
-          <last-edited>1.8</last-edited>
275
-          <splitter-proportions>
276
-            <option name="proportions">
277
-              <list>
278
-                <option value="0.33547795" />
279
-              </list>
280
-            </option>
281
-          </splitter-proportions>
282
-        </settings>
283
-      </state>
284
-      <state key="ProjectJDKs.UI">
285
-        <settings>
286
-          <last-edited>1.8</last-edited>
287
-          <splitter-proportions>
288
-            <option name="proportions">
289
-              <list>
290
-                <option value="0.2" />
291
-              </list>
292
-            </option>
293
-          </splitter-proportions>
294
-        </settings>
295
-      </state>
296
-      <state key="ProjectLibrariesConfigurable.UI">
297
-        <settings>
298
-          <splitter-proportions>
299
-            <option name="proportions">
300
-              <list>
301
-                <option value="0.33547795" />
302
-              </list>
303
-            </option>
304
-          </splitter-proportions>
305
-        </settings>
306
-      </state>
307
-    </states>
308
-  </component>
309 315
 </project>

+ 0
- 2
ZipCoinRedJavaServer/pom.xml Целия файл

@@ -57,6 +57,4 @@
57 57
     </dependencies>
58 58
 
59 59
 
60
-
61
-
62 60
 </project>

+ 24
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/ZipCoinApp.java Целия файл

@@ -11,3 +11,27 @@ public class ZipCoinApp {
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
+* */

+ 1
- 1
ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/BlockLoader.java Целия файл

@@ -34,4 +34,4 @@ import org.springframework.stereotype.Component;
34 34
 
35 35
         }
36 36
     }
37
-}
37
+

+ 40
- 1
ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/TransactionLoader.java Целия файл

@@ -1,4 +1,43 @@
1 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 Целия файл

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

+ 1
- 0
ZipCoinRedJavaServer/src/main/resources/application.properties Целия файл

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

+ 2
- 1
ZipCoinRedJavaServer/target/classes/application.properties Целия файл

@@ -1,3 +1,4 @@
1
+
1 2
 spring.jpa.hibernate.ddl-auto=create-drop
2 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 Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/config/BlockLoader.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/config/TransactionLoader.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/config/WalletLoader.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/BlockController.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/HomeController.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/TransactionController.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/WalletController.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Block.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Chain.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Transaction.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Wallet.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/BlockRepository.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/TransactionRepository.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/WalletRepository.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/Miner.class Целия файл


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/StringUtil.class Целия файл


+ 16
- 0
ZipCoinRedJavaServer/target/classes/db/migration/V2__create_block.sql Целия файл

@@ -1,3 +1,17 @@
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 15
 -- CREATE TABLE BLOCK(
2 16
 -- 	ID INT AUTO_INCREMENT,
3 17
 -- 	BLOCK_NUMBER INT,
@@ -12,4 +26,5 @@
12 26
 --  NAME VARCHAR (50),
13 27
 --  PUBLICKEY VARCHAR (200),
14 28
 --  AMOUNT INT
29
+-- );
30
+>>>>>>> dev

+ 51
- 0
src/main/java/redCoin/Main.java Целия файл

@@ -0,0 +1,51 @@
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 Целия файл

@@ -0,0 +1,34 @@
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 Целия файл