Shivam Patel 6 years ago
parent
commit
9f0c45fdb1
33 changed files with 13717 additions and 13599 deletions
  1. 96
    0
      .idea/workspace.xml
  2. 1
    1
      ZipCoinRedIonicClient/.sourcemaps/0.js.map
  3. 1
    1
      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. 12
    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. 6
    3
      ZipCoinRedIonicClient/www/build/0.js
  15. 1
    1
      ZipCoinRedIonicClient/www/build/0.js.map
  16. 2
    2
      ZipCoinRedIonicClient/www/build/2.js
  17. 1
    1
      ZipCoinRedIonicClient/www/build/3.js
  18. 1
    1
      ZipCoinRedIonicClient/www/build/main.js
  19. 1
    1
      ZipCoinRedIonicClient/www/build/main.js.map
  20. 13372
    13371
      ZipCoinRedIonicClient/www/build/vendor.js
  21. 1
    1
      ZipCoinRedIonicClient/www/build/vendor.js.map
  22. 1
    0
      ZipCoinRedJavaServer/.idea/.name
  23. 1
    0
      ZipCoinRedJavaServer/.idea/misc.xml
  24. 3
    4
      ZipCoinRedJavaServer/.idea/modules.xml
  25. 0
    124
      ZipCoinRedJavaServer/.idea/uiDesigner.xml
  26. 0
    6
      ZipCoinRedJavaServer/.idea/vcs.xml
  27. 102
    64
      ZipCoinRedJavaServer/.idea/workspace.xml
  28. 1
    2
      ZipCoinRedJavaServer/ZipCoin-RED.iml
  29. 40
    2
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/BlockLoader.java
  30. 6
    5
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java
  31. 2
    0
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/Miner.java
  32. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/config/BlockLoader.class
  33. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Transaction.class

+ 96
- 0
.idea/workspace.xml View File

@@ -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>

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

@@ -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":""}

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


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

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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>

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

@@ -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,21 @@ 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){
23
+    this.getAllTransactions;
19 24
   }
20 25
 
21 26
   ionViewDidLoad() {
22 27
     console.log('ionViewDidLoad TransactionPage');
23 28
   }
24 29
 
30
+  getAllTransactions() {
31
+    this.transactionService.getAllTransactions().subscribe(transactions => {
32
+      this.transactions = transactions;
33
+    })
34
+  }
35
+
25 36
 }

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

@@ -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 View File

@@ -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 View File

@@ -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
+}

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

@@ -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__(100);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(104);
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 View File

@@ -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/2.js View File

@@ -1,6 +1,6 @@
1 1
 webpackJsonp([2],{
2 2
 
3
-/***/ 279:
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__, "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__(99);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tabs__ = __webpack_require__(103);
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/3.js View File

@@ -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__(102);
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);

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

@@ -79,7 +79,7 @@ var TransactionPage = /** @class */ (function () {
79 79
     };
80 80
     TransactionPage = __decorate([
81 81
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
82
-            selector: 'page-transaction',template:/*ion-inline-start:"/Users/shivamp/labs/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/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
82
+            selector: 'page-transaction',template:/*ion-inline-start:"/Users/shivamp/labs/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/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
83 83
         }),
84 84
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
85 85
     ], TransactionPage);

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


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


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


+ 1
- 0
ZipCoinRedJavaServer/.idea/.name View File

@@ -0,0 +1 @@
1
+ZipCoin-RED

+ 1
- 0
ZipCoinRedJavaServer/.idea/misc.xml View File

@@ -1,5 +1,6 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3
+  <component name="ExternalStorageConfigurationManager" enabled="true" />
3 4
   <component name="JavaScriptSettings">
4 5
     <option name="languageLevel" value="ES6" />
5 6
   </component>

+ 3
- 4
ZipCoinRedJavaServer/.idea/modules.xml View File

@@ -1,9 +1,8 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3
-<component name="ProjectModuleManager">
3
+  <component name="ProjectModuleManager">
4 4
     <modules>
5
-        <module fileurl="file://$PROJECT_DIR$/ZipCoin-RED.iml" filepath="$PROJECT_DIR$/ZipCoin-RED.iml" />
6
-
5
+      <module fileurl="file://$PROJECT_DIR$/ZipCoin-RED.iml" filepath="$PROJECT_DIR$/ZipCoin-RED.iml" />
7 6
     </modules>
8
-</component>
7
+  </component>
9 8
 </project>

+ 0
- 124
ZipCoinRedJavaServer/.idea/uiDesigner.xml View File

@@ -1,124 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="Palette2">
4
-    <group name="Swing">
5
-      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6
-        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
-      </item>
8
-      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9
-        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
-      </item>
11
-      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
-      </item>
14
-      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
-        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
-      </item>
17
-      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
-        <initial-values>
20
-          <property name="text" value="Button" />
21
-        </initial-values>
22
-      </item>
23
-      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
-        <initial-values>
26
-          <property name="text" value="RadioButton" />
27
-        </initial-values>
28
-      </item>
29
-      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
-        <initial-values>
32
-          <property name="text" value="CheckBox" />
33
-        </initial-values>
34
-      </item>
35
-      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
-        <initial-values>
38
-          <property name="text" value="Label" />
39
-        </initial-values>
40
-      </item>
41
-      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
-          <preferred-size width="150" height="-1" />
44
-        </default-constraints>
45
-      </item>
46
-      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
-          <preferred-size width="150" height="-1" />
49
-        </default-constraints>
50
-      </item>
51
-      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
-          <preferred-size width="150" height="-1" />
54
-        </default-constraints>
55
-      </item>
56
-      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
-          <preferred-size width="150" height="50" />
59
-        </default-constraints>
60
-      </item>
61
-      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
-          <preferred-size width="150" height="50" />
64
-        </default-constraints>
65
-      </item>
66
-      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
-          <preferred-size width="150" height="50" />
69
-        </default-constraints>
70
-      </item>
71
-      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
-        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
-      </item>
74
-      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
-          <preferred-size width="150" height="50" />
77
-        </default-constraints>
78
-      </item>
79
-      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
-        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
-          <preferred-size width="150" height="50" />
82
-        </default-constraints>
83
-      </item>
84
-      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
-          <preferred-size width="150" height="50" />
87
-        </default-constraints>
88
-      </item>
89
-      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
-          <preferred-size width="200" height="200" />
92
-        </default-constraints>
93
-      </item>
94
-      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
-          <preferred-size width="200" height="200" />
97
-        </default-constraints>
98
-      </item>
99
-      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
-      </item>
102
-      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
-      </item>
105
-      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
-      </item>
108
-      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
-      </item>
111
-      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
-          <preferred-size width="-1" height="20" />
114
-        </default-constraints>
115
-      </item>
116
-      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
-      </item>
119
-      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
-        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
-      </item>
122
-    </group>
123
-  </component>
124
-</project>

+ 0
- 6
ZipCoinRedJavaServer/.idea/vcs.xml View File

@@ -1,6 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="VcsDirectoryMappings">
4
-    <mapping directory="" vcs="Git" />
5
-  </component>
6
-</project>

+ 102
- 64
ZipCoinRedJavaServer/.idea/workspace.xml View File

@@ -1,7 +1,7 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="95916691-c5f4-4cde-b1bc-b59f4c8f4277" name="Default" comment="" />
4
+    <list default="true" id="56c18b2c-8142-4688-b878-d487ac8e7cdb" name="Default" comment="" />
5 5
     <ignored path="$PROJECT_DIR$/target/" />
6 6
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7 7
     <option name="TRACKING_ENABLED" value="true" />
@@ -10,22 +10,6 @@
10 10
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11 11
     <option name="LAST_RESOLUTION" value="IGNORE" />
12 12
   </component>
13
-  <component name="FileEditorManager">
14
-    <leaf>
15
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="true">
16
-        <entry file="file://$PROJECT_DIR$/pom.xml">
17
-          <provider selected="true" editor-type-id="text-editor">
18
-            <state relative-caret-position="472">
19
-              <caret line="56" column="19" lean-forward="true" selection-start-line="56" selection-start-column="19" selection-end-line="56" selection-end-column="19" />
20
-            </state>
21
-          </provider>
22
-        </entry>
23
-      </file>
24
-    </leaf>
25
-  </component>
26
-  <component name="Git.Settings">
27
-    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
28
-  </component>
29 13
   <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
30 14
   <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
31 15
   <component name="JsGulpfileManager">
@@ -35,16 +19,31 @@
35 19
   <component name="NodePackageJsonFileManager">
36 20
     <packageJsonPaths />
37 21
   </component>
38
-  <component name="ProjectFrameBounds" extendedState="6" fullScreen="true">
39
-    <option name="x" value="783" />
40
-    <option name="y" value="22" />
41
-    <option name="width" value="788" />
42
-    <option name="height" value="970" />
22
+  <component name="ProjectFrameBounds">
23
+    <option name="y" value="23" />
24
+    <option name="width" value="1280" />
25
+    <option name="height" value="713" />
26
+  </component>
27
+  <component name="ProjectView">
28
+    <navigator proportions="" version="1">
29
+      <foldersAlwaysOnTop value="true" />
30
+    </navigator>
31
+    <panes>
32
+      <pane id="Scope" />
33
+      <pane id="AndroidView" />
34
+      <pane id="PackagesPane" />
35
+      <pane id="ProjectPane" />
36
+    </panes>
43 37
   </component>
44 38
   <component name="PropertiesComponent">
45 39
     <property name="WebServerToolWindowFactoryState" value="false" />
46 40
     <property name="aspect.path.notification.shown" value="true" />
47
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
41
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
42
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
43
+    <property name="project.structure.last.edited" value="Project" />
44
+    <property name="project.structure.proportion" value="0.0" />
45
+    <property name="project.structure.side.proportion" value="0.0" />
46
+    <property name="settings.editor.selected.configurable" value="project.propVCSSupport.Mappings" />
48 47
   </component>
49 48
   <component name="RunDashboard">
50 49
     <option name="ruleStates">
@@ -121,54 +120,52 @@
121 120
   </component>
122 121
   <component name="TaskManager">
123 122
     <task active="true" id="Default" summary="Default task">
124
-      <changelist id="95916691-c5f4-4cde-b1bc-b59f4c8f4277" name="Default" comment="" />
125
-      <created>1533041845952</created>
123
+      <changelist id="56c18b2c-8142-4688-b878-d487ac8e7cdb" name="Default" comment="" />
124
+      <created>1533221514750</created>
126 125
       <option name="number" value="Default" />
127 126
       <option name="presentableId" value="Default" />
128
-      <updated>1533041845952</updated>
129
-      <workItem from="1533041850092" duration="34000" />
130
-      <workItem from="1533221942109" duration="246000" />
127
+      <updated>1533221514750</updated>
128
+      <workItem from="1533221516219" duration="17000" />
131 129
     </task>
132 130
     <servers />
133 131
   </component>
134 132
   <component name="TimeTrackingManager">
135
-    <option name="totallyTimeSpent" value="280000" />
133
+    <option name="totallyTimeSpent" value="17000" />
136 134
   </component>
137 135
   <component name="ToolWindowManager">
138
-    <frame x="0" y="0" width="1680" height="1050" extended-state="6" />
136
+    <frame x="0" y="23" width="1280" height="713" extended-state="0" />
139 137
     <layout>
140
-      <window_info anchor="right" id="Palette" order="3" />
141
-      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
142
-      <window_info anchor="right" id="Maven Projects" order="3" />
143
-      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
144
-      <window_info id="Capture Tool" order="2" />
145
-      <window_info id="Designer" order="2" />
146
-      <window_info anchor="right" id="Database" order="3" />
138
+      <window_info anchor="right" id="Palette" />
139
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
140
+      <window_info anchor="right" id="Maven Projects" />
141
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
142
+      <window_info id="Capture Tool" />
143
+      <window_info id="Designer" />
144
+      <window_info anchor="right" id="Database" />
147 145
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
148 146
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
149
-      <window_info id="UI Designer" order="2" />
147
+      <window_info id="UI Designer" />
150 148
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
151 149
       <window_info anchor="bottom" id="TODO" order="6" />
152
-      <window_info anchor="bottom" id="Messages" />
153
-      <window_info anchor="right" id="Palette&#9;" order="3" />
154
-      <window_info id="Image Layers" order="2" />
155
-      <window_info anchor="bottom" id="Java Enterprise" order="7" />
156
-      <window_info anchor="right" id="Capture Analysis" order="3" />
157
-      <window_info anchor="bottom" id="Version Control" order="7" />
158
-      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32923076" />
159
-      <window_info anchor="bottom" id="Spring" order="7" />
160
-      <window_info anchor="bottom" id="Terminal" order="7" />
161
-      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24969475" />
162
-      <window_info anchor="right" id="Bean Validation" order="3" />
163
-      <window_info id="Web" order="2" side_tool="true" />
164
-      <window_info anchor="right" id="Theme Preview" order="3" />
165
-      <window_info id="Favorites" order="2" side_tool="true" />
166
-      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
150
+      <window_info anchor="right" id="Palette&#9;" />
151
+      <window_info id="Image Layers" />
152
+      <window_info anchor="bottom" id="Java Enterprise" />
153
+      <window_info anchor="right" id="Capture Analysis" />
154
+      <window_info anchor="bottom" id="Run" order="2" />
155
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
156
+      <window_info anchor="bottom" id="Spring" />
157
+      <window_info anchor="bottom" id="Terminal" />
158
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24959612" />
159
+      <window_info anchor="right" id="Bean Validation" />
160
+      <window_info id="Web" side_tool="true" />
161
+      <window_info anchor="right" id="Theme Preview" />
162
+      <window_info id="Favorites" side_tool="true" />
163
+      <window_info anchor="bottom" id="Find" order="1" />
167 164
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
168
-      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
169
-      <window_info anchor="bottom" id="Message" order="0" />
165
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
170 166
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
171
-      <window_info anchor="bottom" id="Find" order="1" />
167
+      <window_info anchor="bottom" id="Message" order="0" />
168
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
172 169
     </layout>
173 170
   </component>
174 171
   <component name="TypeScriptGeneratedFilesManager">
@@ -177,13 +174,54 @@
177 174
   <component name="VcsContentAnnotationSettings">
178 175
     <option name="myLimit" value="2678400000" />
179 176
   </component>
180
-  <component name="editorHistoryManager">
181
-    <entry file="file://$PROJECT_DIR$/pom.xml">
182
-      <provider selected="true" editor-type-id="text-editor">
183
-        <state relative-caret-position="472">
184
-          <caret line="56" column="19" lean-forward="true" selection-start-line="56" selection-start-column="19" selection-end-line="56" selection-end-column="19" />
185
-        </state>
186
-      </provider>
187
-    </entry>
177
+  <component name="masterDetails">
178
+    <states>
179
+      <state key="GlobalLibrariesConfigurable.UI">
180
+        <settings>
181
+          <splitter-proportions>
182
+            <option name="proportions">
183
+              <list>
184
+                <option value="0.2" />
185
+              </list>
186
+            </option>
187
+          </splitter-proportions>
188
+        </settings>
189
+      </state>
190
+      <state key="JdkListConfigurable.UI">
191
+        <settings>
192
+          <last-edited>1.8</last-edited>
193
+          <splitter-proportions>
194
+            <option name="proportions">
195
+              <list>
196
+                <option value="0.2" />
197
+              </list>
198
+            </option>
199
+          </splitter-proportions>
200
+        </settings>
201
+      </state>
202
+      <state key="ProjectJDKs.UI">
203
+        <settings>
204
+          <last-edited>1.8</last-edited>
205
+          <splitter-proportions>
206
+            <option name="proportions">
207
+              <list>
208
+                <option value="0.2" />
209
+              </list>
210
+            </option>
211
+          </splitter-proportions>
212
+        </settings>
213
+      </state>
214
+      <state key="ProjectLibrariesConfigurable.UI">
215
+        <settings>
216
+          <splitter-proportions>
217
+            <option name="proportions">
218
+              <list>
219
+                <option value="0.2" />
220
+              </list>
221
+            </option>
222
+          </splitter-proportions>
223
+        </settings>
224
+      </state>
225
+    </states>
188 226
   </component>
189 227
 </project>

+ 1
- 2
ZipCoinRedJavaServer/ZipCoin-RED.iml View File

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" version="4">
3 3
   <component name="FacetManager">
4 4
     <facet type="Spring" name="Spring">
5 5
       <configuration />
@@ -26,7 +26,6 @@
26 26
     </content>
27 27
     <orderEntry type="inheritedJdk" />
28 28
     <orderEntry type="sourceFolder" forTests="false" />
29
-    <orderEntry type="library" scope="RUNTIME" name="Maven: mysql:mysql-connector-java:5.1.38" level="project" />
30 29
     <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:1.3.1.RELEASE" level="project" />
31 30
     <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:1.3.1.RELEASE" level="project" />
32 31
     <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:1.3.1.RELEASE" level="project" />

+ 40
- 2
ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/BlockLoader.java View File

@@ -1,4 +1,42 @@
1 1
 package com.zipcoin.config;
2 2
 
3
-public class BlockLoader {
4
-}
3
+import com.zipcoin.model.Block;
4
+import com.zipcoin.repository.BlockRepository;
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 BlockLoader implements ApplicationRunner {
12
+        private BlockRepository block;
13
+
14
+        @Autowired
15
+        public BlockLoader(BlockRepository block) {
16
+            this.block = block;
17
+        }
18
+
19
+//Testing merge...
20
+//
21
+        //
22
+        //
23
+        //
24
+        //
25
+
26
+        public void run(ApplicationArguments args) {
27
+
28
+            Block[] blocks = new Block[]{
29
+                    new Block(0, "0000aboivsnd9878"),
30
+                    new Block(867, "SuperCrew"),
31
+                    new Block(459, "LoA Team"),
32
+                    new Block(123, "HF Team"),
33
+                    new Block(55555, "Ω≈≈≈≈"),
34
+                    new Block(97, "˙˙˙˙˙˙˙"),
35
+            };
36
+
37
+            for (Block x : blocks)
38
+                this.block.save(x);
39
+
40
+        }
41
+    }
42
+

+ 6
- 5
ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java View File

@@ -12,7 +12,7 @@ public class Transaction {
12 12
     private Long transactionId;
13 13
 
14 14
     private String sender;
15
-    private String reciepient;
15
+    private String recipient;
16 16
     private float amount;
17 17
 
18 18
     //@OneToMany
@@ -28,7 +28,7 @@ public class Transaction {
28 28
 
29 29
     public Transaction(String from, String to, float amount/*List<Integer> coins*/) {
30 30
         this.sender = from;
31
-        this.reciepient = to;
31
+        this.recipient = to;
32 32
         this.amount = amount;
33 33
         //this.coins=coins;
34 34
 
@@ -51,11 +51,11 @@ public class Transaction {
51 51
     }
52 52
 
53 53
     public String getReciepient() {
54
-        return reciepient;
54
+        return recipient;
55 55
     }
56 56
 
57 57
     public void setReciepient(String reciepient) {
58
-        this.reciepient = reciepient;
58
+        this.recipient = reciepient;
59 59
     }
60 60
 
61 61
     public float getAmount() { return amount; }
@@ -70,7 +70,8 @@ public class Transaction {
70 70
 
71 71
         return DigestUtils.sha256Hex(
72 72
                 sender +
73
-                        (reciepient) +
73
+                        (recipient) +
74
+
74 75
                         Float.toString(amount)
75 76
         );
76 77
     }

+ 2
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/Miner.java View File

@@ -21,4 +21,6 @@ public class Miner {
21 21
         this.hashCodeCheck = hashCodeCheck;
22 22
     }
23 23
 
24
+    //Testing...
25
+
24 26
 }

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


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